package com.bobo.service.impl;

import com.bobo.base.mybatis.ServiceImpl;
import com.bobo.mapper.IndexImgMapper;
import com.bobo.pojo.IndexImg;
import com.bobo.service.IndexImgService;
import jakarta.annotation.Resource;

import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IndexImgServiceImpl extends ServiceImpl<IndexImgMapper, IndexImg> implements IndexImgService {
    /**
     * 获取全部图片列表
     * @return
     */
    @Resource
    private IndexImgMapper indexImgMapper;
    @Override
//    @Cacheable(cacheNames = "indexImg", key = "'indexImg'")
    public List<IndexImg> listIndexImg() {
        return indexImgMapper.listIndexImg();
    }
}
